import React, { Component } from 'react'
import '../assets/styles/k-button.less'

export default class KButton extends Component {
    render() {
        return (
            <div style={this.props.style} className={`white ${this.props.type && this.props.type === 'primary' ? '' : 'k-button'} ${this.props.className}`} onClick={e => { this.props.onClick && this.props.onClick(e) }}>
                {this.props.children}
            </div>
        )
    }
}
